import request from '@/utils/request'

export function Ios_Android_Llass_List (data) { //分类树-列表
 return request({
   url: '/mall-goods/mall-goods-front-tree/search',
   method: 'get',
   params : data
 })
}
export function add_Compile_Ios_Android_Llass (data,method) { //分类树-编辑新增
 return request({
   url: '/mall-goods/mall-goods-front-tree',
   method: method,
   data
 })
}
export function node_Tree_List (frontTreeId) { //分类树-节点树
 return request({
   url: '/mall-goods/mall-goods-front-tree/nodes',
   method: 'get',
   params : { frontTreeId }
 })
}
export function add_Compile_Ios_Android_Tree (data,method) { //分类树-节点-新增
 return request({
   url: '/mall-goods/mall-goods-front-node',
   method: method,
   data
 })
}
export function del_Ios_Android_Tree (treeNodeId) { //分类树-节点-删除
 return request({
   url: '/mall-goods/mall-goods-front-node',
   method: 'DELETE',
   data : treeNodeId
 })
}
export function tree_class () { //商品分类-分类树
 return request({
   url: '/mall-goods/mall-goods-category/tree',
   method: 'get',
 })
}
export function confirm_tree_class (data) { //分类树-节点-新增(更新)节点分类
 return request({
   url: '/mall-goods/mall-goods-front-node/links',
   method: 'post',
   data
 })
}
export function tree_class_list (treeNodeId) { //分类树-节点-节点下关联的分类列表
 return request({
   url: '/mall-goods/mall-goods-front-node/links',
   method: 'get',
   params : {treeNodeId}
 })
}
export function del_tree_class (frontTreeId) { //分类树-节点-节点下关联的分类列表
 return request({
   url: '/mall-goods/mall-goods-front-tree',
   method: 'DELETE',
   data : frontTreeId
 })
}
